-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add new benchmarks to test\Microsoft.ML.Benchmarks #722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -8,6 +8,7 @@ | |||
using Microsoft.ML.Runtime.Data; | |||
using Microsoft.ML.Runtime.FastTree; | |||
using Microsoft.ML.Runtime.Internal.Calibration; | |||
using Microsoft.ML.Runtime.Learners; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this file can be reverted. No need to change this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this file are mostly refactoring that improves the style. There are actually multiple redundant using
s here that I am going to remove in my next commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, this kind of style/clean up changes should not happen as part of another PR. It distracts from the real change in this PR, and it also clutters history (When some one looks at all the changes to this file, they see this change. Or when someone looks at this commit in the history, there is this needless change also included.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will revert the changes - thanks!
public void Setup() | ||
{ | ||
s_dataPath = Program.GetDataPath("adult.train"); | ||
StochasticDualCoordinateAscentClassifierBench.s_metrics = Models.ClassificationMetrics.Empty; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like unfortunate coupling that I don't think we want. Can this be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
} | ||
|
||
public class IrisData |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe IrisData
and IrisPrediction
are used. Can they be removed?
{ | ||
// Pipeline | ||
var loader = new TextLoader(env, | ||
new TextLoader.Arguments() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(nit) this should be indented since it is a continuation of the line above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I also indented the subsequent lines since they are actually all inside one pair of parantheses, which may not be apparent from the current code style.
@@ -15,6 +15,7 @@ namespace Microsoft.ML.Models | |||
/// </summary> | |||
public sealed class ClassificationMetrics | |||
{ | |||
public static ClassificationMetrics Empty = new ClassificationMetrics(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should be adding this public API in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @briancylui
test OSX10.13 Debug |
@eerhardt: |
Copying a relevant comment from #724: Regarding the perf results posted on #724, KMeansAndLogisticRegression (KMeans+LR) shares the same AccuracyMacro with SDCA (0.98), but since the |
@briancylui - do you think there are changes from #724 that should be brought over here? @adamsitnik - I see the existing benchmark test has a bit of coupling between the |
@briancylui @eerhardt I have solved this issue in #735 |
Submitting @yaeldekel's new benchmarks via this PR.
test\Microsoft.ML.Benchmarks
cc: @yaeldekel @eerhardt